#include <stdio.h>
#include <omp.h>
#include <time.h>
#include <stdlib.h>
#include <iostream>
//编译指令
//g++ -std=c99 -fopenmp 11Static.cpp -o cmake-build/11Static && export OMP_NUM_THREADS=512 && time ./cmake-build/11Static
using namespace std;
int main()
{
#pragma omp parallel for shared(cout) schedule(static,2) default(none)
    for(int i=0;i<10;++i)
    {
        cout<<"thread id: "<<omp_get_thread_num()<<"value: "<<i<<std::endl;
    }
    return 0;
}

